@import "~scss/variables";

.sw-entity-single-select {
    .sw-entity-single-select__selection-input {
        padding: 10px 0 11px;
        width: 0;
        display: inline-block;

        &.is--expanded {
            width: 100%;
            display: block;
            padding: 10px 8px 11px;
        }
    }

    .sw-entity-single-select__selection-text {
        display: inline-block;
        padding-left: 8px;

        &.is--placeholder {
            color: var(--color-text-secondary-default);
            white-space: nowrap;
            overflow: hidden;
        }
    }

    &.sw-select.sw-field--medium {
        .sw-select__selection {
            padding: 0 6px;
        }

        .sw-entity-single-select__selection-input {
            padding: 8px;
        }
    }

    &.sw-select.sw-field--small {
        .sw-select__selection {
            padding: 0 6px;
        }

        .sw-entity-single-select__selection-input {
            padding: 4px 8px;
        }
    }

    &__selection {
        display: flex;
        align-items: center;
        height: 100%;
        padding-right: 48px;
    }
}
